package cuid.sc20.laboratory.domain;

import cuid.sc20.laboratory.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 角色对象 tb_role
 *
 * @author ruoyi
 * @date 2023-06-30
 */
public class TbRole extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 角色表主键 */
    private Long id;

    /** 角色名称 */
    @Excel(name = "角色名称")
    private String roleName;

    /** 英文角色名 */
    @Excel(name = "英文角色名")
    private String roleNameEn;

    /** 角色代码 */
    @Excel(name = "角色代码")
    private String roleCode;

    /** 是否删除 1-是，0-否 */
    @Excel(name = "是否删除 1-是，0-否")
    private Integer deleted;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setRoleName(String roleName)
    {
        this.roleName = roleName;
    }

    public String getRoleName()
    {
        return roleName;
    }
    public void setRoleNameEn(String roleNameEn)
    {
        this.roleNameEn = roleNameEn;
    }

    public String getRoleNameEn()
    {
        return roleNameEn;
    }
    public void setRoleCode(String roleCode)
    {
        this.roleCode = roleCode;
    }

    public String getRoleCode()
    {
        return roleCode;
    }
    public void setDeleted(Integer deleted)
    {
        this.deleted = deleted;
    }

    public Integer getDeleted()
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("roleName", getRoleName())
            .append("roleNameEn", getRoleNameEn())
            .append("roleCode", getRoleCode())
            .append("deleted", getDeleted())
            .toString();
    }
}
